package com.example.stock.config;

import android.util.Log;

public class Config {

    /**
     * 未知错误
     */
    public static final int UNKNOWN = 1000;
    /**
     * 解析错误
     */
    public static final int PARSE_ERROR = UNKNOWN + 1;
    /**
     * 网络错误
     */
    public static final int NETWORD_ERROR = PARSE_ERROR + 1;
    /**
     * 协议出错
     */
    public static final int HTTP_ERROR = NETWORD_ERROR + 1;

    /**
     * 证书出错
     */
    public static final int SSL_ERROR = HTTP_ERROR + 1;

    /**
     * 连接超时
     */
    public static final int TIMEOUT_ERROR = SSL_ERROR + 1;

    /**
     * 调用错误
     */
    public static final int INVOKE_ERROR = TIMEOUT_ERROR + 1;
    /**
     * 类转换错误
     */
    public static final int CAST_ERROR = INVOKE_ERROR + 1;
    /**
     * 请求取消
     */
    public static final int REQUEST_CANCEL = CAST_ERROR + 1;
    /**
     * 未知主机错误
     */
    public static final int UNKNOWNHOST_ERROR = REQUEST_CANCEL + 1;

    /**
     * 空指针错误
     */
    public static final int NULLPOINTER_EXCEPTION = UNKNOWNHOST_ERROR + 1;

    public static final int UNKNOWNSERVICE_ERROR = NULLPOINTER_EXCEPTION + 1;

    /**
     * 未知错误
     */
    public static final int REQUEST_FAILURE = 999;

    public static final int GOOD_TYPE_QUERY = 1; // 查看
    public static final int GOOD_TYPE_UPLOAD = 2; // 勾选上传数据
    public static final int GOOD_TYPE_SCAN = 3; // 单选跳转扫码界面

    public static final int SOAP_1_1 = 11;
    public static final int SOAP_1_2 = 12;

    public static String BASE_URL = "http://10.43.1.38:9082/";
    public static String URL_NAME_SPACE = "http://intf.base.ws.nc/IBusiPDABillService/";

    public static final int PAGE_SIZE = 100;

    public static void LogI(String s) {
        Log.d("Scan", s);
    }
}
